﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>浙江农林大学教学建设项目管理系统</title>
    <link rel="stylesheet" href="CSS/Index.css" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
    $(function loadpanel()
     {
          var type=$('#hideSession').val();
         if (type=='yes') {
         $('#Panel1').hide();
         $('#Panel2').show();
         } 
         else
         {
          $('#Panel2').hide();
          $('#Panel1').show();
         }
    });
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<div class="zhong">
  <div class="banner"><img src="Images/img_2.png" /></div>
  <div class="menu">
    <div class="menusel" style="width:95px;">
      <h2><a href="index.aspx">首页</a></h2>
    </div>
    <div id="menu1" class="menusel">
      <h2><a href="#">系统相关</a></h2>
      <div class="position">
        <ul class="clearfix typeul">
          <li><a href="#">系统简介</a></li>
          <li><a href="#">系统帮助</a></li>
          <li class="lli"><a href="#">关于系统</a></li>
        </ul>
      </div>
    </div>
    <div id="menu2" class="menusel">
      <h2><a href="News/DeclareList.aspx">项目信息</a></h2>
      <div class="position">
         <ul class="clearfix typeul">
          <li><a href="News/DeclareList.aspx">已开启申报</a></li>
          <li><a href="News/approvallist.aspx">已开启审批</a></li>
          <li class="lli"><a href="News/PassedList.aspx">已立项项目</a></li>
        </ul>
      </div>
    </div>
    <div id="menu3" class="menusel">
      <h2><a href="News/NewsList.aspx">新闻信息</a></h2>
      <div class="position">
        <ul class="clearfix typeul">
          <li><a href="News/NewsList.aspx?type=declare">申报</a></li>
          <li><a href="News/NewsList.aspx?type=approval">评审</a></li>
          <li class="lli"><a href="News/NewsList.aspx?type=others">其他</a></li>
        </ul>
      </div>
    </div>
    <div id="menu4" class="menusel">
      <h2><a href="News/DownLoadList.aspx">下载中心</a></h2>
      <div class="position">
     <ul class="clearfix typeul">
          <li><a href="News/DownLoadList.aspx?type=txt">文档</a></li>
          <li><a href="News/DownLoadList.aspx?type=table">表格</a></li>
          <li class="lli"><a href="News/DownLoadList.aspx?type=others">其他</a></li>
        </ul>
      </div>
    </div>
    <div id="menu5" class="menusel">
      <h2><a href="#">内容搜索</a></h2>
      <div class="position">
        <ul class="clearfix typeul">
        </ul>
      </div>
    </div>
    <div id="menu6" class="menusel">
      <h2><a href="News/GuestBook.aspx">在线留言</a></h2>
      <div class="position">
        <ul class="clearfix typeul">
          <li><a href="News/GuestBookAdd.aspx">发表留言</a></li>
          <li class="lli"><a href="News/GuestBook.aspx">留言列表</a></li>
        </ul>
      </div>
    </div>
    <div id="menu7" class="menusel">
      <h2><a href="News/contactadmin.aspx">联系管理员</a></h2>
      <div class="position">
        <ul class="clearfix typeul">
        </ul>
      </div>
    </div>
  </div>
 <div class="main">
    <div class="left">
    <div id="Panel1">
   <div class="box_1">
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <div class="left_title">系统登录</div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="32%" height="37" valign="middle">用户名：</td>
            <td width="68%" valign="middle">
            <asp:TextBox ID="txtName" runat="server" CssClass="input_1"></asp:TextBox>
            </td>
          </tr>
          <tr>
            <td height="37" valign="middle">密　码：</td>
            <td valign="middle">
             <asp:TextBox ID="txtPassword" runat="server" CssClass="input_2" TextMode="Password"></asp:TextBox></td>
          </tr>
          <tr>
            <td height="37" valign="middle">验证码：</td>
            <td valign="middle">
                <asp:TextBox ID="txtCode" runat="server" CssClass="input_3"></asp:TextBox>
                <img style="float:left;cursor:pointer;" alt="验证码"  title="点击换图片" src="common/CheckCode.aspx" onclick="this.src='common/CheckCode.aspx?' + new Date().getTime();"/></td>
          </tr>
          <tr>    
            <td colspan="2" align="center">
            
               <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="images/img_4.gif"  style="margin:0px 10px 0px 15px" OnClick="btnLogin_Click"/>
                <asp:ImageButton ID="btnRegister" runat="server" ImageUrl="images/img_5.gif" OnClick="btnRegister_Click" />

            </td>
          </tr>
         <tr>
         <td colspan="2"><div id="divnote" runat="server"></div></td>
         </tr> 
        </table>
       </ContentTemplate>
        </asp:UpdatePanel>
      </div>
         </div>        
        <div id="Panel2">
               <div class="box_1">
        <div class="left_title"> 已登录用户信息</div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
           <td rowspan="6" style="width: 80px">
               <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/m1.png" /></td>
           <td align="left"><asp:Label ID="lblname" runat="server"></asp:Label></td>
       </tr> 
       <tr>
       <td align="left">
                    <asp:Label ID="lblUsertype" runat="server"></asp:Label></td>
       </tr>
       <tr>
       <td align="left"><asp:Label ID="lbldepart" runat="server"></asp:Label></td>
       </tr>
            <tr>
                <td align="left">
                    <div>
                        <asp:Image ID="imgmail" align="top" runat="server" ImageUrl="Images/Mail_Head.png" />站内邮件(<asp:Label
                            ID="lblmail" runat="server">0</asp:Label>)
                    </div>
                    </td>
            </tr>
       <tr>
       <td></td>
       </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 17px;" colspan="2" align="right">
                    </td>
            </tr>
        <tr>
       <td colspan="2" align="center">
        <asp:ImageButton ID="btnjinru" runat="server" style="margin:0px 10px 0px 5px" ImageUrl="~/Images/jinru.gif" OnClick="btnjinru_Click"/>
           <asp:ImageButton ID="btnzhuxiao" runat="server" ImageUrl="~/Images/zhuxiao.gif" OnClick="btnzhuxiao_Click" />
       </td>
      </tr>
       </table>
       </div> 
      </div>     
      <div class="box_1">
        <div class="left_title">最近立项的项目</div>
        <div  id="top10" runat="server">
         
        </div>
      </div>
      <div class="box_1" style="margin:0px;">
        <div class="left_title">
            跳转到其他页面</div>
        <div class="left_nr">
          <ul>
            <li><a href="http://www.zafu.edu.cn">浙江农林大学主页</a></li>
           <li><a href="http://jwc.zafu.edu.cn">浙江农林大学教务处</a></li> 
          </ul>
        </div>
      </div>
    </div>
    <div class="right">
      <img src="images/img_8.gif" style="float:left"/>
      <div class="news">
        <div class="news_title"><span><img src="images/title_1.gif" /></span><a href="News/NewsList.aspx"><img src="images/more.gif" /></a></div>
 <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    	<tr align="right">
         <td colspan="3">
    	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr align="left">
            <td><a href="News/NewsList.aspx?type=<%# Eval("type") %>">[<%# Eval("type") %>]</a></td>
    		<td><a href="News/Newsdetail.aspx?id=<%# Eval("id") %>"><%#strTrim(Convert.ToString(Eval("title")),Convert.ToString(Eval("highlight")))%></a></td>
    		<td><%#ToShortTime(Convert.ToString(Eval("date"))) %></td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    <asp:Label ID="lblEmpty" Text="目前新闻列表为空……" runat="server"  Visible='<%# bool.Parse((Repeater1.Items.Count==0).ToString()) %>'></asp:Label> 
    </FooterTemplate>
    </asp:Repeater>
    <br />
      </div>
    </div>
    
      <div class="right">
      <img src="images/img_8.gif" style="float:left"/>
      <div class="news">
        <div class="news_title"><span><img src="Images/xiangmu.gif" /></span><a href="#"><img src="images/more.gif" /></a></div>
<div id="list">
<div id="left" style="float:left; width:330px; overflow:hidden;">
        <div class="box_1" style="margin:0px;">
        <div class="left_title">
            已开启申报的项目</div>
        <div class="left_nr" id="divdeclare" runat="server">
         
        </div>
      </div>
</div>
<div id="right" style="margin-left:340px;">
      <div class="box_1" style="margin:0px;">
        <div class="left_title">
            已开启审批的项目</div>
        <div class="left_nr" id="divjudge" runat="server">
         
        </div>
      </div>
</div>
<div class="clear"></div>
</div>
      </div>
    </div>
    <div class="clear">  
    </div>
  </div>
  <div class="bottom">&copy; 信息工程学院IT创新实验室 版权所有 2010<input id="hideSession" style="width: 1px" type="hidden" runat="server"/></div>
</div>
<script type="text/javascript" src="js/menu.js"></script>
    </form>
</body>
</html>
